package com.xk857.school.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;


@Data
@Accessors(chain = true)
@ApiModel(value = "组团旅游用户添加条件", description = "组团旅游用户添加条件")
public class TourismUserREQ{

    @Pattern(regexp="^[^\\s]+[\\s]*.*$", message="标题不能为纯空格")
    @NotNull(message = "标题不能为空")
    @ApiModelProperty(value = "标题")
    private String title;


    @ApiModelProperty(value = "详细说明，包含时间等")
    private String comtent;

    @ApiModelProperty(value = "集合地点/时间")
    private String address;

    @Pattern(regexp="^[^\\s]+[\\s]*.*$", message="标题不能为纯空格")
    @ApiModelProperty(value = "团长联系方式")
    private String phone;


    @NotNull(message = "学校名称不能为空")
    @ApiModelProperty(value = "学校名称")
    private String schoolName;


    @ApiModelProperty(value = "最大人数")
    private Integer peopleNum;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "详细说明md格式，包含时间等")
    private String mdContent;

}